package com.yonyou.ucf.mdf.app.isvdxq.other.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.gson.Gson;
import com.yonyou.iuap.yms.annotation.YMSColumn;
import com.yonyou.iuap.yms.annotation.YMSEntity;
import com.yonyou.iuap.yms.annotation.YMSTable;
import com.yonyou.iuap.yms.param.BaseEntity;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@YMSEntity
@YMSTable(tableName = "dxqyy_warehouse")
public class WarehouseEntity extends BaseEntity {

    private Long id;

    private String code;

    private String warehouseName;

    private String org;

    @YMSColumn(name = "org_name")
    private String org_name;

    private String ownerorg;

    @YMSColumn(name = "ownerorg_name")
    private String ownerorg_name;

    private String shopDefault;

    private String iUsed;

    private String bMRP;

    private String joinStockQuery;

    private String stockCheckType;

    private String iSerialManage;

    private String isGoodsPosition;

    private String isGoodsPositionStock;

    private String eStore;

    private String wStore;

    private String bWMS;

    private String isSubcontractW;

    private String isInvertedScour;

    private String countCost;

    private String isWasteWarehouse;

    private String isEnabled;

    private String modifier;

    private String modifierId;

    private String modifyTime;

    private String pubts;

    @YMSColumn(name = "ytenant_id")
    private String tenantId;

    // datetime COMMENT '创建时间',
    private String createTime;

    //'创建人'
    private String creatorId;

    //'创建人'
    private String creator;

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
    // 兼容订阅数据
    public void set_status(String _status) {
        if (_status == "Update") super.set_status(1);
        else if (_status == "Insert") {
            super.set_status(0);
        }
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }

    public String getOrg_name() {
        return org_name;
    }

    public void setOrg_name(String org_name) {
        this.org_name = org_name;
    }

    public String getOwnerorg() {
        return ownerorg;
    }

    public void setOwnerorg(String ownerorg) {
        this.ownerorg = ownerorg;
    }

    public String getOwnerorg_name() {
        return ownerorg_name;
    }

    public void setOwnerorg_name(String ownerorg_name) {
        this.ownerorg_name = ownerorg_name;
    }

    public String getShopDefault() {
        return shopDefault;
    }

    public void setShopDefault(String shopDefault) {
        this.shopDefault = shopDefault;
    }

    public String getiUsed() {
        return iUsed;
    }

    public void setiUsed(String iUsed) {
        this.iUsed = iUsed;
    }

    public String getbMRP() {
        return bMRP;
    }

    public void setbMRP(String bMRP) {
        this.bMRP = bMRP;
    }

    public String getJoinStockQuery() {
        return joinStockQuery;
    }

    public void setJoinStockQuery(String joinStockQuery) {
        this.joinStockQuery = joinStockQuery;
    }

    public String getStockCheckType() {
        return stockCheckType;
    }

    public void setStockCheckType(String stockCheckType) {
        this.stockCheckType = stockCheckType;
    }

    public String getiSerialManage() {
        return iSerialManage;
    }

    public void setiSerialManage(String iSerialManage) {
        this.iSerialManage = iSerialManage;
    }

    public String getIsGoodsPosition() {
        return isGoodsPosition;
    }

    public void setIsGoodsPosition(String isGoodsPosition) {
        this.isGoodsPosition = isGoodsPosition;
    }

    public String getIsGoodsPositionStock() {
        return isGoodsPositionStock;
    }

    public void setIsGoodsPositionStock(String isGoodsPositionStock) {
        this.isGoodsPositionStock = isGoodsPositionStock;
    }

    public String geteStore() {
        return eStore;
    }

    public void seteStore(String eStore) {
        this.eStore = eStore;
    }

    public String getwStore() {
        return wStore;
    }

    public void setwStore(String wStore) {
        this.wStore = wStore;
    }

    public String getbWMS() {
        return bWMS;
    }

    public void setbWMS(String bWMS) {
        this.bWMS = bWMS;
    }

    public String getIsSubcontractW() {
        return isSubcontractW;
    }

    public void setIsSubcontractW(String isSubcontractW) {
        this.isSubcontractW = isSubcontractW;
    }

    public String getIsInvertedScour() {
        return isInvertedScour;
    }

    public void setIsInvertedScour(String isInvertedScour) {
        this.isInvertedScour = isInvertedScour;
    }

    public String getCountCost() {
        return countCost;
    }

    public void setCountCost(String countCost) {
        this.countCost = countCost;
    }

    public String getIsWasteWarehouse() {
        return isWasteWarehouse;
    }

    public void setIsWasteWarehouse(String isWasteWarehouse) {
        this.isWasteWarehouse = isWasteWarehouse;
    }

    public String getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(String isEnabled) {
        this.isEnabled = isEnabled;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public String getModifierId() {
        return modifierId;
    }

    public void setModifierId(String modifierId) {
        this.modifierId = modifierId;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getPubts() {
        return pubts;
    }

    public void setPubts(String pubts) {
        this.pubts = pubts;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
}
